package com.xmsx.back.pojo;

import java.util.List;
import java.util.Objects;

public class ResultSecond<T> {

    private int start;
    private int end;
    private List<T> domestic;
    private List<T> foreign;

    public ResultSecond() {
    }

    public ResultSecond(int start, int end, List<T> domestic, List<T> foreign) {
        this.start = start;
        this.end = end;
        this.domestic = domestic;
        this.foreign = foreign;
    }

    public int getStart() {
        return start;
    }

    public void setStart(int start) {
        this.start = start;
    }

    public int getEnd() {
        return end;
    }

    public void setEnd(int end) {
        this.end = end;
    }

    public List<T> getDomestic() {
        return domestic;
    }

    public void setDomestic(List<T> domestic) {
        this.domestic = domestic;
    }

    public List<T> getForeign() {
        return foreign;
    }

    public void setForeign(List<T> foreign) {
        this.foreign = foreign;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof ResultSecond)) return false;
        ResultSecond<?> that = (ResultSecond<?>) o;
        return getStart() == that.getStart() &&
                getEnd() == that.getEnd() &&
                Objects.equals(getDomestic(), that.getDomestic()) &&
                Objects.equals(getForeign(), that.getForeign());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getStart(), getEnd(), getDomestic(), getForeign());
    }

    @Override
    public String toString() {
        return "ResultSecond{" +
                "start=" + start +
                ", end=" + end +
                ", domestic=" + domestic +
                ", foreign=" + foreign +
                '}';
    }
}
